<?php

/* @var $this common\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
/* @var $searchModel backend\modules\rbac\models\AdminerSearch */

use common\widgets\grid\GridView;

$this->params['consoleactions'] = $searchModel->getConsoles();
$this->title = '管理员权限设置';
?>

<?=

GridView::widget([
    'dataProvider' => $dataProvider,
    'filterModel' => $searchModel,
    'useKeywordSearch' => true,
    'columns' => [
        'id',
        'avatar:image',
        'username',
        'realname',
        'mobile:mobile',
        'rolename',
        'created_at:datetime',
        [
            'class' => 'common\widgets\grid\LabelColumn',
            'attribute' => 'status',
            'headerOptions' => ['class' => 'text-right'],
            'contentOptions' => ['class' => 'text-right'],
        ],
        [
            'class' => 'common\widgets\grid\ActionColumn',
            'template' => '{view:授权:info}',
        ],
    ],
]);
?>
